package com.chenjt.springai.ten_multiModal.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 注释：
 *
 * @author chenjt
 * @date 2025/6/2 10:58
 */
@Data
@NoArgsConstructor
public class Result {

    private Integer ok;
    private String msg;

    private Result(Integer ok, String msg) {
        this.ok = ok;
        this.msg = msg;
    }

    public static Result ok() {
        return new Result(1, "ok");
    }

    public static Result fail(String msg) {
        return new Result(0, msg);
    }

}
